/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="LEGENDAS")
public class LegendasProteu implements Serializable{

    @Id
    @Column(name="LEG_ST_CODIGO")
    private String legStCodigo;
    @Column(name="LEG_ST_DESCRICAO")
    private String legStDescricao;
    @Column(name="LEG_ST_SIGLA")
    private String legStSigla;
    @Column(name="LEG_ST_COR_FONTE")
    private Integer legStCorFonte;
    @Column(name="LEG_ST_COR_FUNDO")
    private Integer legStCorFundo;


    public String getLegStCodigo() {
        return legStCodigo;
    }

    public void setLegStCodigo(String legStCodigo) {
        this.legStCodigo = legStCodigo;
    }

    public Integer getLegStCorFonte() {
        return legStCorFonte;
    }

    public void setLegStCorFonte(Integer legStCorFonte) {
        this.legStCorFonte = legStCorFonte;
    }

    public Integer getLegStCorFundo() {
        return legStCorFundo;
    }

    public void setLegStCorFundo(Integer legStCorFundo) {
        this.legStCorFundo = legStCorFundo;
    }

    public String getLegStDescricao() {
        return legStDescricao;
    }

    public void setLegStDescricao(String legStDescricao) {
        this.legStDescricao = legStDescricao;
    }

    public String getLegStSigla() {
        return legStSigla;
    }

    public void setLegStSigla(String legStSigla) {
        this.legStSigla = legStSigla;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final LegendasProteu other = (LegendasProteu) obj;
        if ((this.legStCodigo == null) ? (other.legStCodigo != null) : !this.legStCodigo.equals(other.legStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + (this.legStCodigo != null ? this.legStCodigo.hashCode() : 0);
        return hash;
    }

    

}
